package com.itlong.cloud.paymenthub;

import com.itlong.cloud.POJO.DTO.operate.OperateAmountChangeGetPageDTO;
import com.itlong.cloud.POJO.VO.operate.OperateAmountChangeGetPageVO;
import com.itlong.cloud.utils.page.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <desc>
 *      运营-资金变动明细暴露接口
 * </desc>
 *
 * @createDate 2018/9/21
 */
@FeignClient(name = "payment-hub-service")
public interface IOperateAmountChangeClient {

    /**
     * <desc>
     *      分页获取资金变动明细
     * </desc>
     *
     * @param operateAmountChangeGetPageDTO 资金变动明细列表查询DTO
     * @return 分页结果
     * @author wangzhi
     * @createDate 2018/09/21
     */
    @PostMapping(path = "/operate/amountChangeManage/getPage")
    Page<OperateAmountChangeGetPageVO> getPage(@RequestBody OperateAmountChangeGetPageDTO operateAmountChangeGetPageDTO) throws Exception;

    /**
     * <desc>
     *      获取所有资金变动明细列表
     * </desc>
     *
     * @param operateAmountChangeGetPageDTO 资金变动明细列表查询DTO
     * @return 结果集
     * @author wangzhi
     * @createDate 2018/09/21
     */
    @PostMapping(path = "/operate/amountChangeManage/getAllAmountChangeList")
    List<OperateAmountChangeGetPageVO> getAllAmountChangeList(@RequestBody OperateAmountChangeGetPageDTO operateAmountChangeGetPageDTO) throws Exception;
}
